package com.yy.springcloud.controller;

import com.yy.springcloud.entity.CommonResult;
import com.yy.springcloud.entity.Payment;
import com.yy.springcloud.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class OrderFeignController {
    @Autowired
    private PaymentService paymentService;

    @GetMapping("/consumer/payment/get")
    public CommonResult<Payment> getPayment(){
        return paymentService.getPayment();
    }
}
